package com.dkm.ec.product.persistence.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.dkm.base.db.mybatis.dao.MyBatisDaoImpl;
import com.dkm.ec.product.persistence.dao.ProdRelDao;
import com.dkm.ec.product.persistence.entity.ProdRelPo;

/**
 * 对象功能:产品关联 Dao接口的实现类
 * 开发公司:SKG.COM
 * 开发人员:Yuki
 * 创建时间:2014-12-25 09:39:25
 */
@Repository
public class ProdRelDaoImpl extends MyBatisDaoImpl<String, ProdRelPo> implements ProdRelDao{

    @Override
    public String getNamespace() {
        return ProdRelPo.class.getName();
    }

	@Override
	public void deleteByMainId(String mainId) {
		Map<String,Object>params = new HashMap<String, Object>();
		params.put("mainId", mainId);
		deleteByKey("deleteByMainId", params);
		
	}

	@Override
	public void deleteByRelId(String relId) {
		Map<String,Object>params = new HashMap<String, Object>();
		params.put("relId", relId);
		deleteByKey("deleteByRelId", params);
		
	}
	
}
